/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package linkeddata.arida.ufc.br.enums;

/**
 *
 * @author jeovane
 */
public enum ClausesSparql {

    FILTER("FILTER"),
    LIMIT("LIMIT"),
    OPT("OPTIONAL"),
    ORDERBY("ORDER BY"),
    SELECT("SELECT"),
    SERVICE("SERVICE"),
    UNION("UNION"),
    WHERE("WHERE");
    private final String clausulas;

    private ClausesSparql(String clausulas) {
        this.clausulas = clausulas;
    }

    @Override
    public String toString() {
        return clausulas;
    }

    public static ClausesSparql getType(String code) {
        return values()[Integer.parseInt(code)];
    }
}
